package cn.bughub.enums;


/**
 * 响应枚举类
 *
 * @author zwj
 * @date 2024-09-23
 */
public enum StatusEnum {
    
    SUCCESS(200, "请求处理成功"),
    UNAUTHORIZED(401, "认证失败"),
    FORBIDDEN(403, "拒绝请求，权限不足"),
    SERVICE_ERROR(500, "服务异常"),
    PARAM_INVALID(1000, "无效参数");
    
    public final Integer code;
    
    public final String message;
    
    StatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
